<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
<%@include file="/common/global.jsp"%>
<html>
<head>
	<meta charset="utf-8" />
	<title>${proName}</title>
		<meta name="description" content="<spring:message code="sw.sys.name"/>" />
		<meta name="keywords" content="<spring:message code="sw.sys.name"/>"/>
		<meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
		<link rel="stylesheet" href="${ctxPath}/static/css/amazeui.min.css" />
		<link rel="stylesheet" href="${ctxPath}/static/css/style.css" />
		<script type="text/javascript" src="${ctxPath}/static/js/jquery.min.js" ></script>
		<script type="text/javascript" src="${ctxPath}/static/js/amazeui.min.js" ></script>
	    <%@include file="/common/head.jsp"%>
	</head>
	<body>
		<header data-am-widget="header" class="am-header am-header-default header">
		  <div class="am-header-left am-header-nav">
			  <input type="hidden" name="" id="type" value="${type}">
			  <input type="hidden" id="ctxPath" value="${ctxPath}">
		   <%--  <a href="${ctxPath}/home/index" class="">
		       <i class="am-header-icon am-icon-angle-left"></i>
		     </a>--%>
		  </div>
		  <h1 class="am-header-title"> <a href="#title-link" class="" style="color: #333;"><spring:message code="sw.sys.name"/></a></h1>
		  <div class="am-header-right am-header-nav">
		     <a href="#right-link" class=""> </a>
		  </div>
	  </header>
	  <div class="search-input">
	  	  <input id = "searchName" type="text" placeholder="请输入您搜索的内容" value="${searchName}" />
		  <%--<a onclick="search()" id="searchButton" class="">搜索</a>--%>
		  <input type="button" name="" id="searchButton" onclick="sortSearc()" class="btn btn-success" value="搜索">
	  </div>
	  <ul class="paixu" id="paixu">
	  	<li><a href="javascript:void(0)"  name="default" class="desc current" >默认</a></li>
	  	<%--<li><a href="">销量</a></li>--%>
	  	<li><a href="javascript:void(0)"  name="price" class="desc"  >价格</a></li>
	  </ul>
	   <ul data-am-widget="gallery" class="am-gallery am-avg-sm-2 am-avg-md-3 am-avg-lg-4 am-gallery-default product">
			<c:choose>
				<c:when test="${!empty busiProductList}">
					<c:forEach items="${busiProductList}" var="bs">
						<li>
							<div class="am-gallery-item">
								<a href="${ctxPath}/busiProduct/do_detail_Page?id=${bs.id}" class="">
									<img src="${staticServer}/${bs.imgUrl}" alt=""/>
									<h3 class="am-gallery-title">${bs.zhName}</h3>
									<div class="am-gallery-desc">
										<em>￥<fmt:formatNumber value="${bs.price}" type="currency" pattern="#.##"/></em><i class="am-icon-cart-plus"></i>
									</div>
								</a>
							</div>
						</li>
					</c:forEach>
				</c:when>
				<c:otherwise>
					暂无商品！
				</c:otherwise>
			</c:choose>
		 </ul>
		<div class="h50"></div>
	<%@include file="/common/page_footer.jsp"%>
	</body>
	<script type="text/javascript" src="${ctxPath}/static/js/search.js"></script>
</html>
